package com.qianli.cashmama.trade.dao;

import com.fqgj.common.api.Page;
import com.fqgj.common.base.BaseMapper;
import com.qianli.cashmama.trade.entity.TTimeoutCenterEntity;

import java.util.Date;
import java.util.List;

/**
 * User: sm
 * Date: 2017-07-21
 * Time: 09:10:21.150
 */

public interface TTimeoutCenterDao extends BaseMapper<TTimeoutCenterEntity> {

    /**
     * 获取等待执行的超时任务
     *
     * @param page
     * @param date
     * @param type
     * @param shardingItem
     * @return
     */
    List<TTimeoutCenterEntity> selectListByPageAndDate(Page page, Date date, Integer type, Integer shardingItem);

    int countByValueAndType(String value, Integer type, Integer deleted);

    int deleteHisDeductTask(String billNo);
}